package com.situ.company.department.dao;

import java.util.List;

import com.situ.company.department.model.DepartmentModel;

//制定标准，同一规范
public interface IDepartmentDao {

	Integer insert(DepartmentModel model);
	
	Integer deleteByCode(DepartmentModel model);

	Integer delete(DepartmentModel model);

	Integer updateAll(DepartmentModel model);
	
	Integer updateActive(DepartmentModel model);

	List<DepartmentModel> selectList(DepartmentModel model);
	
	DepartmentModel selectModel(DepartmentModel model);
	
	/**
	 * 根据条件查询得到的记录条数
	 * @param model
	 * @return
	 */
	Integer selectCount(DepartmentModel model);
}
